#include "Common.h"
#include "RenderQueueGroup.h"
#include "MaterialInstance.h"
	
void RenderQueueGroup::Clear()
{
	mDepthDrawList.Clear();
	mBasePassDrawList.Clear();
}

void RenderQueueGroup::AddRenderable(Renderable* renderable)
{
	mDepthDrawList.AddRenderable(
		renderable,
		DepthDrawingPolicy(renderable->getVertexFactory(), renderable->getMaterial()->getParent()));

	mBasePassDrawList.AddRenderable(
		renderable,
		BasePassDrawingPolicy(renderable->getVertexFactory(), renderable->getMaterial()->getParent()));
}